package com.ss.android.push.window.oppo;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.bytedance.common.utility.Logger;

public class ScreenReceiver extends BroadcastReceiver {
    public ScreenReceiver() {

    }

    public void onReceive(Context arg5, Intent arg6) {
        try {
            String v0_1 = arg6.getAction();
            if(Logger.debug()) {
                Logger.d("ScreenReceiver", "action = " + v0_1);
            }

            if(!"android.intent.action.USER_PRESENT".equals(v0_1)) {
                return;
            }

            if(!OppoPushWindowManager.a(arg5).b()) {
                return;
            }

            if(!OppoPushWindowManager.a(arg5).k) {
                return;
            }

            m.a v0_2 = OppoPushWindowManager.a(arg5).d();
            if(v0_2 == null) {
                return;
            }

            com.ss.android.push.window.oppo.a.a(arg5, v0_2);
        }
        catch(Exception v0) {
            if(!Logger.debug()) {
                return;
            }

            v0.printStackTrace();
        }
    }
}

